﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Domain.Entities;
using BusinessLogic.Interfaces;
using Domain;

namespace BusinessLogic.Implementations
{
    public class EFMenusRepository: IMenusRepository
    {
       private DomainContext context;
       public EFMenusRepository(DomainContext context)
        {
            this.context = context;
        }
        public Menu GetIdMenuByDate(DateTime date)
        {
            return context.Menus.FirstOrDefault(x => x.Date == date);
        }
    }
}
